package cn.itcast.yimiaoyuyue.Adapter;

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class MyActivity extends AppCompatActivity {
    private Button bt_tc;
    private TextView tv_per;
    private TextView tv_my;
    private TextView tv_vac;


    @SuppressLint("ResourceType")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_my);

        bt_tc = findViewById(R.id.bt_tc);
        bt_tc.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View V) {
                MyActivity.this.startActivity(new Intent(MyActivity.this, LoginActivity.class));
                MyActivity.this.overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
                MyActivity.this.finish();
            }
        });
            tv_per = findViewById(R.id.tv_per);
            tv_per.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                MyActivity.this.startActivity(new Intent(MyActivity.this, PersonalActivity.class));
                MyActivity.this.overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
                MyActivity.this.finish();
    }
});
            tv_my = findViewById(R.id.tv_my);
            tv_my.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    MyActivity.this.startActivity(new Intent(MyActivity.this, MyListActivity.class));
                    MyActivity.this.overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
                    MyActivity.this.finish();
                }
            });
            tv_vac = findViewById(R.id.tv_vac);
            tv_vac.setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    MyActivity.this.startActivity(new Intent(MyActivity.this, YmAppointmentActivity.class));
                    MyActivity.this.overridePendingTransition(android.R.anim.slide_in_left, android.R.anim.slide_out_right);
                    MyActivity.this.finish();
                }
            });
    }


}